#ifndef WL_NET_H
#define WL_NET_H

#include "wl_inner.h"
#include "wl_ext_network.h"
#include "wl_ext_http.h"

typedef struct {
    wl_ext_tcp_handle handle;
    int tcp_event;
    void *pContext;
}wl_ext_net_message;

typedef struct {
    wl_ext_http_handle handle;
    int status;
    unsigned int dataLen;
    void *callback;
    unsigned char data[1];
}wl_ext_http_message;

void wl_ext_network_callback_wrapper(wl_ext_tcp_handle handle, int tcp_event, void* context);
wl_int32 wl_ext_net_process_message(wl_task_message* message);
wl_int32 wl_http_process_message(wl_task_message* message);
#endif
